package com.jfast.framework.web.core;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import com.jfast.framework.util.DateUtil;


public class ActionReport {
	
	public static void report(String target,Action action,HttpServletRequest request){
		StringBuilder context = new StringBuilder();
		context.append("\nJfast action report -------- " + DateUtil.getFormatDate(new Date()));
		context.append("\nURL         " + request.getMethod() + action.getActionKey());
		context.append("\nController  " + action.getControllerClass());
		context.append("\nMethod  " + action.getMethod().getName());
		System.out.println(context.toString()); 
	}
}

